<?php

namespace app\user\controller;

use app\common\respond\HttpApi;
use app\user\logic\AbnormalTypeLogic;

class AbnormalTypeController
{
    /**
     * @Description 下拉选择列表
     * @author: zj
     * @param HttpApi $respond
     * @time 2024/03/25 12:17:24
     * @return \think\response\Json
     */
    public function selectList(HttpApi $respond)
    {
        $param = [
            'name' => request()->get('name')
        ];
        $rule = [
            'name' => 'max:255'
        ];
        validate($rule)->check($param);

        $logic = new AbnormalTypeLogic();
        $data = $logic->selectList($param);

        return $respond->success($data);
    }

}